Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
d3plus-geomap
Advanced tools
A reusable geo map built on D3 and Topojson
If you use NPM, npm install d3plus-geomap
. Otherwise, download the latest release. The released bundle supports AMD, CommonJS, and vanilla environments. Create a custom bundle using Rollup or your preferred bundler. You can also load directly from d3plus.org:
<script src="https://d3plus.org/js/d3plus-geomap.v0.2.full.min.js"></script>
Viz
Kind: global class
Extends: Viz
Viz
Creates SVG paths and coordinate points based on an array of data. See this example for help getting started using the geomap generator.
If value is specified, filters the features used to calculate the initial projection fitExtent based on an ID, array of IDs, or filter function and returns the current class instance. If value is not specified, returns the current bounds filter.
Kind: static method of Geomap
Param | Type |
---|---|
[value] | Number | String | Array | function |
If value is specified, sets the ocean color and returns the current class instance. If value is not specified, returns the current ocean color.
Kind: static method of Geomap
Param | Type | Default |
---|---|---|
[value] | String | "#cdd1d3" |
If value is specified, sets the topojson outer padding and returns the current class instance. If value is not specified, returns the current topojson outer padding.
Kind: static method of Geomap
Param | Type | Default |
---|---|---|
[value] | Number | 20 |
If value is specified, sets the point accessor to the specified function or array and returns the current class instance. Point values are expected in the format [longitude, latitude], which is in-line with d3's expected [x, y] mapping. If value is not specified, returns the current point accessor.
Kind: static method of Geomap
Param | Type |
---|---|
[value] | function | Array |
If value is specified, sets the point size accessor to the specified function or number and returns the current class instance. If value is not specified, returns the current point size accessor.
Kind: static method of Geomap
Param | Type |
---|---|
[value] | function | Number |
If value is specified, sets the maximum point radius and returns the current class instance. If value is not specified, returns the current maximum point radius.
Kind: static method of Geomap
Param | Type | Default |
---|---|---|
[value] | Number | 10 |
If value is specified, sets the minimum point radius and returns the current class instance. If value is not specified, returns the current minimum point radius.
Kind: static method of Geomap
Param | Type | Default |
---|---|---|
[value] | Number | 5 |
If value is specified, toggles the map tiles and returns the current class instance. If value is not specified, returns the current tiling boolean.
Kind: static method of Geomap
Param | Type | Default |
---|---|---|
[value] | Boolean | true |
If value is specified, sets the topojson to be used and returns the current class instance. If value is not specified, returns the current topojson.
Kind: static method of Geomap
Param | Type |
---|---|
[value] | Boolean | Object |
If value is specified, filters the features used to calculate the initial projection fitExtent based on an ID, array of IDs, or filter function and returns the current class instance. If value is not specified, returns the current bounds filter.
Kind: static method of Geomap
Param | Type |
---|---|
[value] | Number | String | Array | function |
If value is specified, sets the topojson object key to be used and returns the current class instance. If value is not specified, returns the current topojson object key.
Kind: static method of Geomap
Param | Type | Default |
---|---|---|
[value] | String | "countries" |
If value is specified, toggles the zoom behavior and returns the current class instance. If value is not specified, returns the current zoom behavior.
Kind: static method of Geomap
Param | Type | Default |
---|---|---|
[value] | Boolean | true |
FAQs
A reusable geo map built on D3 and Topojson
The npm package d3plus-geomap receives a total of 481 weekly downloads. As such, d3plus-geomap popularity was classified as not popular.
We found that d3plus-geomap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.